home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Libris Britannia 4
/
science library(b).zip
/
science library(b)
/
DDJMAG
/
DDJ9203.ZIP
/
OOPASM.ZIP
/
DEMO.ASM
< prev
next >
Wrap
Assembly Source File
|
1990-07-10
|
896b
|
42 lines
.MODEL SMALL
.STACK 100h
INCLUDE equates.inc
INCLUDE instance.inc
INCLUDE messages.inc
INCLUDE objects.inc
IF1
INCLUDE macros.mac
INCLUDE objects.mac
ENDIF
EXTRN initObjs:NEAR
EXTRN sendMsg:NEAR
EXTRN Self:WORD
EXTRN System:WORD
.CODE
COMMENT %
==============================================================================
The main procedure that gets everything started.
=============================================================================%
main PROC NEAR
mov ah,4Ah ;Pass service number
mov bx,ProgramSize ;Pass program size
int DosInt ;DOS interrupt
jc main1 ;Jump if error
setSegs @data ;Make ds, and es point to data
call initObjs ;Initialize objects
send System,Init ;Initialize system
main1: exit
main ENDP
END main